TreeMap 排序 一、TreeMap TreeMap 默認排序規則:按照key的字典順序來排序(升序) 當然,也可以自定義排序規則:要實現Comparator接口。 用法簡單,先看下下面的demo ...